package
{
	import flexlib.scheduling.scheduleClasses.renderers.AbstractSolidScheduleEntryRenderer;
	import flexlib.scheduling.scheduleClasses.SimpleScheduleEntry;
	import flexlib.scheduling.scheduleClasses.IScheduleEntry;
	
	public class BYGScheduleEntryRenderer extends AbstractSolidScheduleEntryRenderer
	{
		public function BYGScheduleEntryRenderer()
		{
			super();
		}
		
		override public function set data(value:Object):void
		{
			super.data = value;
			
			entry = value as IScheduleEntry;
			var content:BYGScheduleEntry = BYGScheduleEntry(entry);
			
			setStyle("backgroundColor", content.backgroundColor);
			
			setTextContent(SimpleScheduleEntry(content));
		}
	}
}